package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallSystemApp;
import com.appkubes.mall.core.po.MallSystemAppExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallSystemAppMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallSystemAppSqlProvider.class, method="countByExample")
    long countByExample(MallSystemAppExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallSystemAppSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallSystemAppExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_system_app",
        "where app_key = #{appKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String appKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_system_app (app_key, weid, ",
        "`type`, platform, ",
        "version_name, version_code, ",
        "content, is_force, ",
        "url)",
        "values (#{appKey,jdbcType=VARCHAR}, #{weid,jdbcType=INTEGER}, ",
        "#{type,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR}, ",
        "#{versionName,jdbcType=VARCHAR}, #{versionCode,jdbcType=INTEGER}, ",
        "#{content,jdbcType=VARCHAR}, #{isForce,jdbcType=INTEGER}, ",
        "#{url,jdbcType=LONGVARCHAR})"
    })
    int insert(MallSystemApp record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallSystemAppSqlProvider.class, method="insertSelective")
    int insertSelective(MallSystemApp record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallSystemAppSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="weid", property="weid", jdbcType=JdbcType.INTEGER),
        @Result(column="type", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="platform", property="platform", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_name", property="versionName", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_code", property="versionCode", jdbcType=JdbcType.INTEGER),
        @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_force", property="isForce", jdbcType=JdbcType.INTEGER),
        @Result(column="url", property="url", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallSystemApp> selectByExampleWithBLOBsWithRowbounds(MallSystemAppExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallSystemAppSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="weid", property="weid", jdbcType=JdbcType.INTEGER),
        @Result(column="type", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="platform", property="platform", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_name", property="versionName", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_code", property="versionCode", jdbcType=JdbcType.INTEGER),
        @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_force", property="isForce", jdbcType=JdbcType.INTEGER),
        @Result(column="url", property="url", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallSystemApp> selectByExampleWithBLOBs(MallSystemAppExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallSystemAppSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="weid", property="weid", jdbcType=JdbcType.INTEGER),
        @Result(column="type", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="platform", property="platform", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_name", property="versionName", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_code", property="versionCode", jdbcType=JdbcType.INTEGER),
        @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_force", property="isForce", jdbcType=JdbcType.INTEGER)
    })
    List<MallSystemApp> selectByExampleWithRowbounds(MallSystemAppExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallSystemAppSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="weid", property="weid", jdbcType=JdbcType.INTEGER),
        @Result(column="type", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="platform", property="platform", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_name", property="versionName", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_code", property="versionCode", jdbcType=JdbcType.INTEGER),
        @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_force", property="isForce", jdbcType=JdbcType.INTEGER)
    })
    List<MallSystemApp> selectByExample(MallSystemAppExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "app_key, weid, `type`, platform, version_name, version_code, content, is_force, ",
        "url",
        "from mall_system_app",
        "where app_key = #{appKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="weid", property="weid", jdbcType=JdbcType.INTEGER),
        @Result(column="type", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="platform", property="platform", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_name", property="versionName", jdbcType=JdbcType.VARCHAR),
        @Result(column="version_code", property="versionCode", jdbcType=JdbcType.INTEGER),
        @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR),
        @Result(column="is_force", property="isForce", jdbcType=JdbcType.INTEGER),
        @Result(column="url", property="url", jdbcType=JdbcType.LONGVARCHAR)
    })
    MallSystemApp selectByPrimaryKey(String appKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallSystemAppSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallSystemApp record, @Param("example") MallSystemAppExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallSystemAppSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") MallSystemApp record, @Param("example") MallSystemAppExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallSystemAppSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallSystemApp record, @Param("example") MallSystemAppExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallSystemAppSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallSystemApp record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @Update({
        "update mall_system_app",
        "set weid = #{weid,jdbcType=INTEGER},",
          "`type` = #{type,jdbcType=VARCHAR},",
          "platform = #{platform,jdbcType=VARCHAR},",
          "version_name = #{versionName,jdbcType=VARCHAR},",
          "version_code = #{versionCode,jdbcType=INTEGER},",
          "content = #{content,jdbcType=VARCHAR},",
          "is_force = #{isForce,jdbcType=INTEGER},",
          "url = #{url,jdbcType=LONGVARCHAR}",
        "where app_key = #{appKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(MallSystemApp record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_system_app
     *
     * @mbg.generated
     */
    @Update({
        "update mall_system_app",
        "set weid = #{weid,jdbcType=INTEGER},",
          "`type` = #{type,jdbcType=VARCHAR},",
          "platform = #{platform,jdbcType=VARCHAR},",
          "version_name = #{versionName,jdbcType=VARCHAR},",
          "version_code = #{versionCode,jdbcType=INTEGER},",
          "content = #{content,jdbcType=VARCHAR},",
          "is_force = #{isForce,jdbcType=INTEGER}",
        "where app_key = #{appKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallSystemApp record);
}